package com.tanqidi.arcgisandroid.ui.layerConfig.subLayer.fieldConfig

import androidx.lifecycle.ViewModel
import com.tanqidi.arcgisandroid.data.project.Project
import com.tanqidi.arcgisandroid.data.project.ProjectRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class FieldConfigViewModel @Inject constructor(
    private val projectRepository: ProjectRepository
) : ViewModel() {

    fun getProjectByName(name: String): Project {
        return projectRepository.getProjectByName(name)
    }

    fun saveProject(project: Project) {
        projectRepository.saveProject(project)
    }
}